const mongoose = require('mongoose')

const UserSchema = new mongoose.Schema({
  name: {
    type: String,
    required: true
  },
  age: {
    type: Number,
    required: true
  },
  gender: {
    type: Number,
    required: true
  },
  date: {
    type: Date,
  },
  is_show: {
    type: Number,
    default: 1
  }
})

const UserModel = mongoose.model('users', UserSchema)

module.exports = UserModel
